#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_func3.py
# author:Jackiex
# datetime:2023/4/17 11:28
# software: PyCharm

"""
  函数传参
"""


def printinfo(name, age):
    "打印任何传入的字符串"
    print("名字: ", name)
    print("年龄: ", age)
    return


# 可写函数说明
def printinfo1(name, age=35):
    "打印任何传入的字符串"
    print("名字: ", name)
    print("年龄: ", age)
    return


# 调用printinfo函数
printinfo(age=50, name="runoob")
print("------------------------")
printinfo(name="runoob")

# 调用printinfo函数
printinfo( age=50, name="runoob" )

printinfo("runoob",50)


printinfo1( age=50, name="runoob" )
print ("------------------------")
printinfo1( name="runoob" )
